
//---------------------------------------------------------------------------
#ifndef PG1_WINDOW_H
#define PG1_WINDOW_H
//---------------------------------------------------------------------------
#include "pg1_api.h"
#include <string>
//---------------------------------------------------------------------------
namespace pg1
{
//---------------------------------------------------------------------------
class PG1_API Window
{
// window creation
public:
	bool create (HINSTANCE hInstance, unsigned int uiWidth, unsigned int uiHeight);
	
	HWND hwnd () const;

	void setTitle (const std::string& rkTitle);

private:
	HWND m_hWnd;


// window procedure
private:
	static LRESULT CALLBACK wndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
};
//---------------------------------------------------------------------------
#include "pg1_window.inl"
//---------------------------------------------------------------------------
} // end namespace
//---------------------------------------------------------------------------
#endif // PG1_WINDOW_H
//---------------------------------------------------------------------------
